#!/bin/bash
## mkdir
dir=`echo $1|sed 's/\.[a-zA-Z0-9]*$//'`
mkdir $dir
mv -v $1 $dir
cd $dir
## 100x100
convert $1 -verbose -resize 100x100 `echo $1|sed 's/\.\([a-zA-Z0-9]*\)$/_100x100\.\1/'`
## 200x200
convert $1 -verbose -resize 200x200 `echo $1|sed 's/\.\([a-zA-Z0-9]*\)$/_200x200\.\1/'`
